package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hksj.Intelligentmanagement.vo.DicInfoVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel
@TableName("call_dic_type")
public class DicTypeEntity extends BaseEntity{
    @ApiModelProperty("字典名称")
    @TableField(value = "`name`")
    private String name;
    @ApiModelProperty("标识")
    @TableField(value = "`key`")
    private String key;
    @ApiModelProperty("逻辑删除")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer delFlag;

    @TableField(exist = false)
    private List<DicInfoVo> list = new ArrayList<>();
}
